package Practice05.test7;

public class Stack implements Access{
    String string;

    public Stack() {
        string=null;
    }

    @Override
    public char get() {
        char s = string.charAt(0);
        string = string.substring(1);
        return s;
    }


    @Override
    public void put(char c) {
//        string = string.concat(Character.toString(c));
        string = string + c;
    }
}
